package hk.hku.hooku.pojo;


//import java.util.ArrayList;

public class HistoryRecord {
	private String voterEmail;
	private int voteId;
	private int[] choiceIds;
	//private ArrayList<EventChoice> eventChoices;
	
	
	public HistoryRecord() {
		super();
	}

	public HistoryRecord(String voterEmail) {
		super();
		this.voterEmail = voterEmail;
	}
	
	public HistoryRecord(String voterEmail,int voteId) {
		super();
		this.voterEmail = voterEmail;
		this.voteId=voteId;
	}
	

	public HistoryRecord(String voterEmail,int voteId, int[] choiceIds) {
		super();
		this.voterEmail = voterEmail;
		this.voteId=voteId;
		this.choiceIds = choiceIds;
	}
	
	public String getVoterEmail() {
		return voterEmail;
	}
	
	public int getVoteId(){
		return voteId;
	}
	
	public int[] getchoiceIds(){
		return choiceIds;
	}
	
   
	
	public void setVoterEmail(String voterEmail) {
		this.voterEmail = voterEmail;
	}
	
	public void setvoteId(int voteId) {
		this.voteId = voteId;
	}
	
	
	public void setchoiceIds(int[] choiceIds) {
		this.choiceIds = choiceIds;
	}
	
	@Override
	public boolean equals(Object o){
		if(o instanceof EventVote){
			EventVote vote=(EventVote)o;
			return this.getVoterEmail().equals(vote.getVoterEmail());
		}
		return false;
	}

}
